#第一题
    def parse(self, response):
        myitem = Test1Item()
        print(response.url)
        name1 = response.xpath("//p[@class='title ellipsis2']/text()").getall()
        number1 = response.xpath("//p[@class='one']/text()").getall()
        cash1 = response.xpath("//p[@class='two clearfix']/span/text()").getall()
        imgurl1 = response.xpath("//div[@class='img']//@style").getall()
        print(name1)
        print(number1)
        print(cash1)
        print(imgurl1)
#第二题
    def parse(self, response):
        myitem = Test1Item()
        print(response.url)
        name1 = response.xpath("//li/h2/a/text()").getall()
        number1 = response.xpath("//li/span/text()[2]").getall()
        cash1 = response.xpath("//li/a/img//@src").getall()
        print(name1)
        for i in number1:
            print(i[1:])
        print(cash1)
#第3题
    def parse(self, response):
        myitem = Test1Item()
        print(response.url)
        name1 = response.xpath("//div[@class='title']/a/text()").getall()
        number1 = response.xpath("//div[@class='houseInfo']/text()").getall()
        cash1 = response.xpath("//div[@class='totalPrice totalPrice2']/span/text()").getall()
        imgurl1 = response.xpath("//div[@class='unitPrice']/span/text()").getall()
        print(name1)
        print(number1)
        print(cash1)
        print(imgurl1)
#第4题
    def parse(self, response):
        myitem = Test1Item()
        print(response.url)
        name1 = response.xpath("//li[@class='item']/a/p[2]/text()").getall()
        number1 = response.xpath("//div[@class='comm_box clearfix']/p/span/text()").getall()
        cash1 = response.xpath("//div[@class='comm_box clearfix']/p[@class='score']/text()").getall()
        imgurl1 = response.xpath("//div[@class='comm_box clearfix']/p[@class='comm_num']/text()").getall()
        test1 = response.xpath("//p[@class='price']/span[@class='y rmb']/text()").getall()
        test2 = response.xpath("//p[@class='price']/text()").getall()
        test3 = response.xpath("//p[@class='price']/span[@class='qi']/text()").getall()
        print(name1)
        for i in range(len(number1)):
            print(number1[i]+" "+cash1[i])
        print(imgurl1)
        for i in range(len(test3)):
            print(test1[i]+test2[i]+test3[i])
#第5题
    def parse(self, response):
        myitem = Test1Item()
        print(response.url)
        xhtml = response.json()
        for i in range(50):
            print(xhtml['payload']['players'][i]['playerProfile']['displayName'])
            print(xhtml['payload']['players'][i]['teamProfile']['displayAbbr'])
            print(xhtml['payload']['players'][i]['statAverage']['pointsPg'])